<template>
	<view class="evaluate">
		<view class="evaluate-top">
			<uv-avatar :src="avatar"></uv-avatar>
			<view class="evaluate-top_center">
				<view class="name">{{ name }}</view>
				<view class="rate-ip">
					<view class="rate">
						<text>客户评分</text>
						<uv-rate active-color="#f6d44c" :value="rate" readonly></uv-rate>
					</view>
					<view class="ip">
						<text>IP:</text>
						<text>{{ ip }}</text>
					</view>
				</view>
			</view>
			<view class="date">{{ date }}</view>
		</view>
		<view class="content">{{ content }}</view>
	</view>
</template>

<script setup>
const props = defineProps({
	avatar: String,
	name: String,
	rate: Number,
	ip: String,
	date: String,
	content: String
});
</script>

<style lang="scss" scoped>
.evaluate {
	background-color: #ffffff;
	border-radius: 10px;
	padding: 10px 20px;
	margin-bottom: 10px;

	.evaluate-top {
		display: flex;
		justify-content: space-between;
		align-items: center;
		color: #888b9a;
		font-size: 12px;
		margin-bottom: 20px;

		.evaluate-top_center {
			.rate-ip {
				display: flex;
				justify-content: space-between;
				align-items: center;

				.rate {
					display: flex;
				}
			}
		}

		.content {
			color: #121736;
			font-size: 14px;
		}
	}
}
</style>
